<template>
  <div class="appItem" @click="goUrl">
    <div class="icon">
<!--      <i class="el-icon-platform-eleme"></i>-->
      <img :src="params.picUrl" alt="">
    </div>
    <span class="des">{{ params.name }}</span>
  </div>
</template>

<script>
export default {
  name: "appItem",
  props:{
    params:{
      default:()=>{}
    }
  },
  methods:{
    goUrl(){
      window.open(this.params.appUrl,'_blank')
    },
  },

}
</script>

<style scoped lang="less">
.appItem{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30%;
  cursor: pointer;
  .icon{
    width: 8.5rem;
    height: 8.5rem;
    background: #FFFFFF;
    border: 0.1rem solid #EEEEEE;
    border-radius:1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    img{
      width: 5rem;
      height: 5rem;
    }
    i{
      font-size: 4rem;
      color: #518AFF;
    }
  }
  .des{
    width: 12rem;
    font-size: 1.6rem;
    height: 2rem;
    text-align: center;
    color: #333333;
    display: inline-block;
    margin: 10px 0 ;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
  }
}
</style>